package com.qf.conntroller;

import com.qf.service.Impl.UserServiceImpl;

import com.qfedu.vo.ResultVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {

    @Resource
    private UserServiceImpl userService;


    @RequestMapping("/getUserInfoByUid/{uid}")
    public ResultVo getUserInfoByUid(@PathVariable("uid") Integer uid){
        return userService.getUserByUid(uid);
    }

}
